Convert a list of characters into a string¶
S = ‘’.join(L)
Convert a list of characters into a string.
L = ['a', 'b', 'c', 'd']
S = ''.join(L)
print(S)
Output:
abcd
S = ‘’.join(L)
L = ['a', 'b', 'c', 'd']
S = ''.join(L)
print(S)
Output:
abcd